package com.wootion.cims.module.systemsetting.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: LanQiang
 * @Date: 2022/11/24/10:22
 * @Description: 作用xxx
 */
@ApiModel(value = "系统信息")
@Data
public class SysInformationDto implements Serializable{
    private static final long serialVersionUID = -19085203333342426L;
    /**
     * 系统名称
     */
    @ApiModelProperty(value = "系统名称")
    @NotBlank(message = "系统名称不能为空")
    private String sysName;
    /**
     * 封面设置/0(false):默认  1(true):自定义
     */
    @ApiModelProperty(value = "封面设置/1(true):默认  0(false):自定义")
    private Boolean coverSetting;
    /**
     * 图片尺寸
     */
    @ApiModelProperty(value = "图片尺寸")
    private String pictureSize;
    /**
     * 老年龄人年龄
     */
    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(value = "老年龄人年龄")
    private Integer oldAge;

    @ApiModelProperty(value = "图片")
    private MultipartFile image;

    @ApiModelProperty(value = "密码长度上限")
    private String passwordUpper;

    @ApiModelProperty(value = "密码长度下限")
    private String passwordLower;

    @ApiModelProperty(value = "字符组合")
    private String characterCombination;

    @ApiModelProperty(value = "修改密码提示周期")
    private String passwordTipsCycle;

    @ApiModelProperty(value = "修改密码提示方式")
    private String passwordTipsType;

    @ApiModelProperty(value = "几分钟之内")
    private String fewMinutes;

    @ApiModelProperty(value = "错误的次数")
    private String errorsNumber;

    @ApiModelProperty(value = "几分钟后自动解锁")
    private String unlockMinutes;

    /**
     * “true” 是自定义
     * “false” 是默认
     */
    @ApiModelProperty(value = "密码提示周期是默认还是自定义的")
    private String passwordCycleType;
}
